#include<stdio.h>
#include<fcntl.h>
#include<sys/types.h>
#include<sys/stat.h>
#include<unistd.h>

int main()
{
  //close(1);
 // int fd1 = open("./log.txt",O_WRONLY | O_CREAT);
  FILE* f = fopen("./log.txt","w");
  printf("fd1 = %d\n",f->_fileno);
  //int fd1 = open("./log.txt",O_WRONLY | O_CREAT);
  //int fd2 = open("./log1.txt",O_WRONLY | O_CREAT);
  //int fd3 = open("./log2.txt",O_WRONLY | O_CREAT);
  //int fd4 = open("./log3.txt",O_WRONLY | O_CREAT);
  //int fd5 = open("./log4.txt",O_WRONLY | O_CREAT);
  //printf("fd1 : %d\n", fd1);
  //printf("fd2 : %d\n", fd2);
  //printf("fd3 : %d\n", fd3);
  //printf("fd4 : %d\n", fd4);
  //printf("fd5 : %d\n", fd5);
  return 0;
}
